<%--
  Created by IntelliJ IDEA.
  User: x'z'y
  Date: 2020/8/22
  Time: 13:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table>

之前${pageScope.user}
    <c:set scope="page" var="user" value="aaa"></c:set>
之后${pageScope.user}
<c:if test="${user!=null}">
<%
    request.setAttribute("username",new String[]{"123","234","345","456","567","678","789"});
%>
    <h3>user!=null</h3>
</c:if>
<c:choose>
    <c:when test="${user eq 'xzy'}">

        <h3>xzy</h3>
    </c:when>
    <c:when test="${user eq 'abc'}">

        <h3>abc</h3>
    </c:when>
    <c:otherwise>
        <h3>other</h3>

    </c:otherwise>

</c:choose>
</table>

<c:forEach begin="1" end="5" step="2" varStatus="status" items="${requestScope.username}" var="i">
    <h3>${i}</h3>
    ${status}<br>
</c:forEach>




</body>
</html>
